#include "DeliveryMan.h"

DeliveryMan::DeliveryMan(int pID,Item item)
{
	sender = "";
	mesos = 0;
	_day = 0;
	_month = 0;
	_year = 0;
	this->item = item;
	this->packageID = pID;
}

void DeliveryMan::setPackageID(int pID)
{
	this->packageID = pID;
}

int DeliveryMan::getPackageID()
{
	return this->packageID;
}

string DeliveryMan::getSender()
{
	return this->sender;
}

void DeliveryMan::setSender(string name)
{
	this->sender = name;
}

Item DeliveryMan::getItem()
{
	return this->item;
}

void DeliveryMan::setMesos(int mesos)
{
	this->mesos = mesos;
}

int DeliveryMan::getMesos()
{
	return this->mesos;
}

long DeliveryMan::sentTimeInMilliseconds()
{
	//Calendar cal = Calendar.getInstance();
	//cal.set(year, month, day);
	//return cal.getTimeInMillis();
	return 0;
}

void DeliveryMan::setSentTime(string sentTime)
{
	//day = Integer.parseInt(sentTime.substring(0, 2));
	//month = Integer.parseInt(sentTime.substring(3, 5));
	//year = Integer.parseInt(sentTime.substring(6, 10));
}